<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var ConditionEntitystr = window.dialogArguments;
var ConditionEntity = null;
if(ConditionEntitystr != undefined && ConditionEntitystr != "" && ConditionEntitystr != "{}") {
		ConditionEntity = s2json(ConditionEntitystr);
}
$(document).ready(function() {
	if(ConditionEntity != undefined) {
	
	$('#conditionType').val(ConditionEntity.conditionType);	
	$('#param').val(ConditionEntity.param);	
	$('#value').val(ConditionEntity.value);		
	}
	listselectors();
});
window.returnValue = ConditionEntitystr;

function listselectors() {
}

function submitConditionEntity() {
	window.returnValue = json2s({
			
			conditionType:$('#conditionType').val(),			
			param:xparseInt($('#param').val()),			
			value:xparseInt($('#value').val()),						
	});
	beforeWindowClose();
	window.close();
}

function beforeWindowClose() {
	if(window.returnCallback) {
		window.returnCallback(window.returnValue);
	}
	window.onbeforeunload = null;
	return true;
}

</script>
<body onunload="beforeWindowClose()">
	<div class="addarea">
	<table>
		<tbody>			
				<tr>				<td>
					<label for="conditionType">条件类型</label>
																	<select id="conditionType" name="conditionType">
							
								<option value="1">进入世界地图{0}</option>
							
								<option value="2">进入战役地图{0}</option>
							
								<option value="3">进入自已家园</option>
							
								<option value="5">自己已经装备{0}类型的道具</option>
							
								<option value="6">给好友装备道具</option>
							
								<option value="7">保存装备数据</option>
							
								<option value="8">雇佣NPC</option>
							
								<option value="9">雇佣好友</option>
							
								<option value="11">保存布阵</option>
							
								<option value="12">安装技能</option>
							
								<option value="100">战斗累计胜利次数达到N</option>
							
								<option value="102">战斗累计失败次数达到N</option>
							
								<option value="103">战斗累计平局次数达到N</option>
							
								<option value="105">战斗连续胜利次数</option>
							
								<option value="107">战斗连续失败次数</option>
							
								<option value="109">战斗连续平局次数</option>
							
								<option value="111">战斗累计次数</option>
							
								<option value="113">战斗获得{0}星评级，累计N场</option>
							
								<option value="115">战斗获得{0}星评级，连续N场</option>
							
								<option value="117">胜败交错N次</option>
							
								<option value="119">连败N场以上后获胜</option>
							
								<option value="121">连胜N场以上后失败</option>
							
								<option value="125">N回合内获取战斗胜利</option>
							
								<option value="150">消灭{0}NPC N次</option>
							
								<option value="151">被NPC{0}消灭N次</option>
							
								<option value="152">级别小于{0}的时候首次击败XX</option>
							
								<option value="220">获取技能卡片{0}</option>
							
								<option value="300">用户等级达到N</option>
							
								<option value="302">连续登录次数达到N</option>
							
								<option value="304">累计登录达到N天</option>
							
								<option value="306">拥有N个银币</option>
							
								<option value="400">收集N张{0}品质英雄图鉴</option>
							
								<option value="402">收集N张{0}品质装备图鉴</option>
							
								<option value="500">收集完{0}类型中所有图鉴后点亮的图鉴</option>
							
								<option value="600">完成剧情</option>
													</select>
									</td>
							
								<td>
					<label for="param">参数</label>
					
						<input type="text" id="param" name="param" />
									</td>
				</tr>			
				<tr>				<td>
					<label for="value">值</label>
					
						<input type="text" id="value" name="value" />
									</td>
									</tbody>
	</table>
	</div>
	<input type="button" onclick="submitConditionEntity()" value="提交"/>
</body>